﻿@model IEnumerable<StudentInformationManagement.Models.ClassInfo>

    @{
        ViewBag.Title = "班级信息管理";
    }

    <h2>班级信息列表</h2>

    <table class="table">
        <thead>
            <tr>
                <th>班级编号</th>
                <th>班级名称</th>
                <th>所属专业</th>
                <th>班级人数</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var classInfo in Model)
            {
                <tr>
                    <td>@classInfo.ClassId</td>
                    <td>@classInfo.ClassName</td>
                    <td>@classInfo.ClassMajor</td>
                    <td>@classInfo.ClassCount</td>
                    <td>
                        @Html.ActionLink("编辑", "Edit", new { id = classInfo.ClassId }) |
                        @Html.ActionLink("删除", "Delete", new { id = classInfo.ClassId })
                    </td>
                </tr>
            }
        </tbody>
    </table>

    <p>
        @Html.ActionLink("添加新班级", "Create")
    </p>
